function d3(num)
fname='res.txt';
for i=1:2
data=load(fname);
X=sort(data);
[m n] = size(X);
x=X(:,1);
y=X(:,2);
z=X(:,3);
xlim([x(1) x(m)]);
ylim([y(1) y(m)]);
zlim([z(1) z(m)]);
if( i==1)
plot3(x,y,z,'.');
else
plot3(x,y,z,'x');
end
hold
pause
end
title([int2str(num) ' Nodes Pareto Surface']);
xlabel('Coverage1');
ylabel('Moving dist');
zlabel('Simplicity');
tri=delaunay(x,y);
grid on
%trisurf(tri,x,y,z);
% [MeshX,MeshY] = meshgrid(x,y);
% MeshZ=griddata(x,y,z,MeshX,MeshY);
%surf(MeshX, MeshY, MeshZ);
%h1=plot3(data(:,1),data(:,2),data(:,3));
%annotation('arrow',[.13 .13],[.9,.95] );
%annotation('arrow',[.9,.95],[.11 .11] );
% set(gcf,'Units','normal')
% set(gca,'Position',[0.05 0.05 0.92 0.92])
%set(get(get(e1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
%set(get(get(e2,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
